﻿CREATE RULE [dbo].[RL_Phone]
    AS @Phone LIKE '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
OR @Phone LIKE '[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
OR @Phone LIKE '[0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
OR @Phone = '';


GO
EXECUTE sp_bindrule @rulename = N'[dbo].[RL_Phone]', @objname = N'[dbo].[DT_Phone]';

